import re
hp = "Http://127.0.0.1:8080?usename=wexm&pst=123456"

patn = r"[?|&]"

listname = re.split(patn,hp)
print(listname)
